#pragma once

class Math {
private:
	static double EPS;

public:
	template<class T>
	static T min(const T& first, const T& second) {
		if( first < second ) {
			return first;
		} else {
			return second;
		}
	}
	template<class T>
	static T max (const T& first, const T& second) {
		if( first < second ) {
			return second;
		} else {
			return first;
		}
	}

	static bool isEqual(double first, double second);
};

